package com.cn.wanxi.model;

import java.math.BigDecimal;

public class ProductModel extends BaseModel{
    private String photo;
    private String name;
    private UserTypeModel userType;
    private ProductTypeModel productType;
    private BigDecimal price;

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public UserTypeModel getUserType() {
        return userType;
    }

    public void setUserType(UserTypeModel userType) {
        this.userType = userType;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public ProductTypeModel getProductType() {
        return productType;
    }

    public void setProductType(ProductTypeModel productType) {
        this.productType = productType;
    }

    @Override
    public String toString() {
        return "ProductModel{" +
                "id='" + super.getId() + '\'' +
                "photo='" + photo + '\'' +
                ", name='" + name + '\'' +
                ", userType='" + userType + '\'' +
                ", productType='" + productType + '\'' +
                ", price='" + price + '\'' +
                '}';
    }
}
